package org.wlw;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.wlw.models.User;

@Configuration
@ComponentScan("org.wlw")
@EnableAspectJAutoProxy
public class SpringConfig {

    @Bean(name = "mu")
    public User getUser() {
        User user = new User();
        user.setUsername("admin");
        user.setNickname("管理员");
        return user;
    }
}
